package com.zuser.project;


import com.zuser.project.dao.CustomerCouponDao;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableDiscoveryClient
@RefreshScope
@EnableScheduling
@MapperScan("com.zuser.project.dao")
public class Main implements ApplicationRunner {
    public static void main(String[] args) {
        SpringApplication.run(Main.class);
    }



    @Autowired
    private CustomerCouponDao customerCouponDao;
    @Override
    public void run(ApplicationArguments args) throws Exception {
//        customerCouponDao.deleteById(1L);

    }
}